package com.woniuxy.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/second")
public class SecondController {
    @RequestMapping("/finOne")
    public ModelAndView findOne(){
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.addObject("msg","1111111one");
        modelAndView.setViewName("index");
        return modelAndView;
    }

    @RequestMapping("/findTwo")
    public ModelAndView findTwo(){
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.addObject("msg","2222222two");
        modelAndView.setViewName("index");
        return modelAndView;
    }
}
